#include "serial.hpp"

Serial::Serial(
	const char* port,
	uint32_t baudrate,
	uint8_t databits,
	uint8_t parity,
	uint8_t stopbits,
	uint8_t flowCtrl
	)
{
	this->port = port;
	this->baudrate = baudrate;
	this->databits = databits;
	this->parity = parity;
	this->stopbits = stopbits;
	this->flowCtrl = flowCtrl;
}

Serial::~Serial()
{
}

bool Serial::config()
{
	return false;
}

bool Serial::open()
{
	return false;
}

bool Serial::close()
{
	return false;
}

uint32_t Serial::tx(uint8_t* data, uint32_t len)
{
	return 0;
}

uint32_t Serial::rx(uint8_t* data, uint32_t len)
{
	return 0;
}
